package com.nbsaas.boot.cms.rest.convert;

import com.nbsaas.boot.cms.data.entity.ArticleTag;
import com.nbsaas.boot.cms.api.domain.simple.ArticleTagSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 文章标签-列表对象转换器
*/

public class ArticleTagSimpleConvert implements Converter<ArticleTagSimple, ArticleTag> {




@Override
public ArticleTagSimple convert(ArticleTag source) {
    ArticleTagSimple result = new ArticleTagSimple();

                result.setVisible(source.getVisible());
                result.setColor(source.getColor());
                result.setSeoDescription(source.getSeoDescription());
                result.setIcon(source.getIcon());
                result.setDescription(source.getDescription());
                result.setSort(source.getSort());
                result.setSeoTitle(source.getSeoTitle());
                result.setSeoKeywords(source.getSeoKeywords());
                result.setAddDate(source.getAddDate());
                result.setName(source.getName());
                result.setUseCount(source.getUseCount());
                result.setId(source.getId());
                result.setLastDate(source.getLastDate());


    return result;
}

}